package org.apache.jsp;

import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import org.apache.jackrabbit.util.Text;

public final class header_jsp extends org.apache.jasper.runtime.HttpJspBase
    implements org.apache.jasper.runtime.JspSourceDependent {

  private static final JspFactory _jspxFactory = JspFactory.getDefaultFactory();

  private static java.util.List _jspx_dependants;

  private javax.el.ExpressionFactory _el_expressionfactory;
  private org.apache.AnnotationProcessor _jsp_annotationprocessor;

  public Object getDependants() {
    return _jspx_dependants;
  }

  public void _jspInit() {
    _el_expressionfactory = _jspxFactory.getJspApplicationContext(getServletConfig().getServletContext()).getExpressionFactory();
    _jsp_annotationprocessor = (org.apache.AnnotationProcessor) getServletConfig().getServletContext().getAttribute(org.apache.AnnotationProcessor.class.getName());
  }

  public void _jspDestroy() {
  }

  public void _jspService(HttpServletRequest request, HttpServletResponse response)
        throws java.io.IOException, ServletException {

    PageContext pageContext = null;
    HttpSession session = null;
    ServletContext application = null;
    ServletConfig config = null;
    JspWriter out = null;
    Object page = this;
    JspWriter _jspx_out = null;
    PageContext _jspx_page_context = null;


    try {
      response.setContentType("text/html");
      pageContext = _jspxFactory.getPageContext(this, request, response,
      			null, true, 8192, true);
      _jspx_page_context = pageContext;
      application = pageContext.getServletContext();
      config = pageContext.getServletConfig();
      session = pageContext.getSession();
      out = pageContext.getOut();
      _jspx_out = out;

      out.write("\r\n");
      out.write("\r\n");

String title =
    Text.encodeIllegalXMLCharacters(request.getAttribute("title").toString());
String context =
    Text.encodeIllegalXMLCharacters(request.getContextPath());

      out.write("\r\n");
      out.write("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\"\r\n");
      out.write("          \"http://www.w3.org/TR/html4/loose.dtd\">\r\n");
      out.write("<html>\r\n");
      out.write("  <head>\r\n");
      out.write("    <title>");
      out.print( title );
      out.write("</title>\r\n");
      out.write("    <link rel=\"stylesheet\"\r\n");
      out.write("          href=\"");
      out.print( context );
      out.write("/css/default.css\"\r\n");
      out.write("          type=\"text/css\"/>\r\n");
      out.write("    <link rel=\"shortcut icon\"\r\n");
      out.write("          href=\"");
      out.print( context );
      out.write("/images/favicon.ico\"\r\n");
      out.write("          type=\"image/vnd.microsoft.icon\" />\r\n");
      out.write("  </head>\r\n");
      out.write("  <body>\r\n");
      out.write("    <div id=\"page\">\r\n");
      out.write("      <div id=\"banner\">\r\n");
      out.write("        <p id=\"jcr\">\r\n");
      out.write("          <a href=\"");
      out.print( context );
      out.write("/\">\r\n");
      out.write("            <img src=\"");
      out.print( context );
      out.write("/images/jlogo.gif\"\r\n");
      out.write("                 alt=\"Apache Jackrabbit\" height=\"100\" width=\"336\"/>\r\n");
      out.write("          </a>\r\n");
      out.write("        </p>\r\n");
      out.write("        <p id=\"asf\">\r\n");
      out.write("          <a href=\"http://www.apache.org/\">\r\n");
      out.write("            <img src=\"");
      out.print( context );
      out.write("/images/asf-logo.gif\"\r\n");
      out.write("                 alt=\"Apache Software Foundation\" height=\"100\" width=\"387\"/>\r\n");
      out.write("          </a>\r\n");
      out.write("        </p>\r\n");
      out.write("      </div>\r\n");
      out.write("      <div id=\"navigation\">\r\n");
      out.write("        <ul>\r\n");
      out.write("          <li>Jackrabbit JCR Server\r\n");
      out.write("            <ul>\r\n");
      out.write("              <li><a href=\"");
      out.print( context );
      out.write("/\">Welcome</a></li>\r\n");
      out.write("              <li><a href=\"");
      out.print( context );
      out.write("/webdav-simple.jsp\">Standard WebDAV</a></li>\r\n");
      out.write("              <li><a href=\"");
      out.print( context );
      out.write("/webdav-jcr.jsp\">JCR Remoting</a></li>\r\n");
      out.write("              <li><a href=\"");
      out.print( context );
      out.write("/remote.jsp\">Remote access</a></li>\r\n");
      out.write("              <li><a href=\"");
      out.print( context );
      out.write("/local.jsp\">Local access</a></li>\r\n");
      out.write("              <li><a href=\"");
      out.print( context );
      out.write("/troubleshooting.jsp\">Troubleshooting</a></li>\r\n");
      out.write("              <li><a href=\"");
      out.print( context );
      out.write("/about.jsp\">About Jackrabbit</a></li>\r\n");
      out.write("            </ul>\r\n");
      out.write("          </li>\r\n");
      out.write("          <li>Default workspace\r\n");
      out.write("            <ul>\r\n");
      out.write("              <li><a href=\"");
      out.print( context );
      out.write("/repository/default/\">Browse</a></li>\r\n");
      out.write("              <li><a href=\"");
      out.print( context );
      out.write("/search.jsp\">Search</a></li>\r\n");
      out.write("              <li><a href=\"");
      out.print( context );
      out.write("/populate.jsp\">Populate</a></li>\r\n");
      out.write("            </ul>\r\n");
      out.write("          </li>\r\n");
      out.write("          <li>Apache Jackrabbit\r\n");
      out.write("            <ul>\r\n");
      out.write("              <li><a href=\"http://jackrabbit.apache.org/\">Apache Jackrabbit</a></li>\r\n");
      out.write("              <li><a href=\"http://jackrabbit.apache.org/api/2.1/\">Jackrabbit API</a></li>\r\n");
      out.write("              <li><a href=\"http://wiki.apache.org/jackrabbit/FrontPage\">Jackrabbit Wiki</a></li>\r\n");
      out.write("            </ul>\r\n");
      out.write("          </li>\r\n");
      out.write("          <li>JCR\r\n");
      out.write("            <ul>\r\n");
      out.write("              <li><a href=\"http://jcp.org/en/jsr/detail?id=170\">JSR 170</a></li>\r\n");
      out.write("              <li><a href=\"http://jcp.org/en/jsr/detail?id=283\">JSR 283</a></li>\r\n");
      out.write("              <li><a href=\"http://www.day.com/maven/javax.jcr/javadocs/jcr-2.0/\">JCR 2.0 API</a></li>\r\n");
      out.write("            </ul>\r\n");
      out.write("          </li>\r\n");
      out.write("        </ul>\r\n");
      out.write("      </div>\r\n");
      out.write("      <div id=\"content\">\r\n");
      out.write("        <h2>");
      out.print( title );
      out.write("</h2>\r\n");
    } catch (Throwable t) {
      if (!(t instanceof SkipPageException)){
        out = _jspx_out;
        if (out != null && out.getBufferSize() != 0)
          try { out.clearBuffer(); } catch (java.io.IOException e) {}
        if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
      }
    } finally {
      _jspxFactory.releasePageContext(_jspx_page_context);
    }
  }
}
